(global.webpackJsonp = global.webpackJsonp || []).push([["plugins/mch/cat/cat"], {
  "0093": function(t, e, i) { (function(t) {
          function n(t) {
              return r(t) || o(t) || a()
          }
          function a() {
              throw new TypeError("Invalid attempt to spread non-iterable instance")
          }
          function o(t) {
              if (Symbol.iterator in Object(t) || "[object Arguments]" === Object.prototype.toString.call(t)) return Array.from(t)
          }
          function r(t) {
              if (Array.isArray(t)) {
                  for (var e = 0,
                  i = new Array(t.length); e < t.length; e++) i[e] = t[e];
                  return i
              }
          }
          function c(t, e) {
              var i = Object.keys(t);
              if (Object.getOwnPropertySymbols) {
                  var n = Object.getOwnPropertySymbols(t);
                  e && (n = n.filter(function(e) {
                      return Object.getOwnPropertyDescriptor(t, e).enumerable
                  })),
                  i.push.apply(i, n)
              }
              return i
          }
          function s(t, e, i) {
              return e in t ? Object.defineProperty(t, e, {
                  value: i,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0
              }) : t[e] = i,
              t
          }
          Object.defineProperty(e, "__esModule", {
              value: !0
          }),
          e.
      default = void 0;
          var d = i("2f62"),
          u = {
              components: {
                  "app-category-list": function() {
                      return i.e("components/page-component/app-category-list/app-category-list").then(i.bind(null, "5d3f"))
                  }
              },
              data: function() {
                  return {
                      scrollTop: 0,
                      list: [],
                      goods: [],
                      request: !0,
                      page: 1,
                      classId: 0,
                      activeIndex: 0,
                      activeIndexTwo: 0,
                      height: 0,
                      over: !1,
                      scrollHeight: 0,
                      mch_id: 0,
                      cat_style: 0,
                      cat_id: 0
                  }
              },
              computed: function(t) {
                  for (var e = 1; e < arguments.length; e++) {
                      var i = null != arguments[e] ? arguments[e] : {};
                      e % 2 ? c(i, !0).forEach(function(e) {
                          s(t, e, i[e])
                      }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : c(i).forEach(function(e) {
                          Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e))
                      })
                  }
                  return t
              } ({},
              (0, d.mapGetters)("mallConfig", {
                  tabBarNavs: "getNavBar"
              }), {},
              (0, d.mapState)("gConfig", {
                  windowHeight: function(t) {
                      return t.systemInfo.windowHeight
                  },
                  windowWidth: function(t) {
                      return t.systemInfo.windowWidth
                  }
              }), {},
              (0, d.mapGetters)("iPhoneX", {
                  botHeight: "getBotHeight"
              }), {
                  setHeight: function() {
                      return this.windowHeight + "px"
                  }
              }),
              onReachBottom: function() {},
              onLoad: function(t) {
                  var e = this;
                  e.mch_id = t.mch_id,
                  e.$request({
                      url: e.$api.mch.cat_style,
                      data: {
                          mch_id: e.mch_id
                      }
                  }).then(function(t) {
                      0 === t.code && (e.cat_style = t.data.setting.cat_style, e.loadData())
                  })
              },
              methods: {
                  loadData: function() {
                      var t = this;
                      t.$showLoading(),
                      t.$request({
                          url: t.$api.mch.cats_list,
                          data: {
                              mch_id: t.mch_id,
                              cat_id: t.cat_id
                          }
                      }).then(function(e) {
                          t.$hideLoading(),
                          0 === e.code && (t.list = e.data.list)
                      }).
                      catch(function(e) {
                          t.$hideLoading()
                      })
                  },
                  active: function(e) {
                      var i = this;
                      this.page = 1,
                      t.showLoading({
                          text: "加载中...",
                          mask: !0
                      });
                      for (var n = 0; n < this.list.length; n++) this.list[n].active !== e.active && (this.list[n].active = !1),
                      this.list[n].id === e.id && (this.list[n].active = !0);
                      this.$request({
                          url: "".concat(this.$api.
                      default.goods_list, "&page=").concat(this.page, "&cat_id=").concat(e.id)
                      }).then(function(n) {
                          t.hideLoading(),
                          i.goods = n.data.list,
                          i.page = 1,
                          i.classId = e.id,
                          i.over = !1
                      }),
                      this.over = !1
                  },
                  req: function() {
                      var e = this;
                      this.$request({
                          url: "".concat(this.$api.
                      default.goods_list, "&page=").concat(this.page, "&cat_id=").concat(this.classId)
                      }).then(function(i) {
                          var a;
                          i.data.list.length > 0 ? (a = e.goods).push.apply(a, n(i.data.list)) : e.over = !0,
                          t.hideLoading()
                      })
                  },
                  activeThree: function(t) {
                      for (var e = 0; e < this.list.length; e++) this.list[e].active !== t.active && (this.list[e].active = !1),
                      this.list[e].id === t.id && (this.list[e].active = !0, this.activeIndex = e)
                  }
              }
          };
          e.
      default = u
      }).call(this, i("543d").
  default)
  },
  "0cca": function(t, e, i) {
      i.r(e);
      var n = i("10dd"),
      a = i("7730");
      for (var o in a)"default" !== o &&
      function(t) {
          i.d(e, t,
          function() {
              return a[t]
          })
      } (o);
      i("6f40");
      var r = i("2877"),
      c = Object(r.a)(a.
  default, n.a, n.b, !1, null, "6f3ed586", null);
      e.
  default = c.exports
  },
  "10dd": function(t, e, i) {
      var n = function() {
          var t = this;
          t.$createElement;
          t._self._c
      },
      a = [];
      i.d(e, "a",
      function() {
          return n
      }),
      i.d(e, "b",
      function() {
          return a
      })
  },
  "691a": function(t, e, i) {},
  "6f40": function(t, e, i) {
      var n = i("691a");
      i.n(n).a
  },
  7730 : function(t, e, i) {
      i.r(e);
      var n = i("0093"),
      a = i.n(n);
      for (var o in n)"default" !== o &&
      function(t) {
          i.d(e, t,
          function() {
              return n[t]
          })
      } (o);
      e.
  default = a.a
  }
},
[["0d73", "common/runtime", "common/vendor"]]]);